<div class="tab">
    <div class="tab_item">
		<?php 
            echo CHtml::link(
                "Chuyên mục bài viết", 
                array($controller_id."/view", "current_acategory_id" => $current_acategory_id),
                array("class"=>"tab_item")
            );
        ?>
    </div>
    
    <div class="tab_item">
		<?php 
            echo CHtml::link(
                "Thêm mới", 
                array($controller_id."/add", "current_acategory_id" => $current_acategory_id),
                array("class"=>"tab_item")
            );
        ?>
    </div>
    
    <div class="tab_item">
		<?php 
            echo CHtml::link(
                "Thiết lập", 
                array($controller_id."/thietlap", "current_acategory_id" => $current_acategory_id),
                array("class"=>"tab_item active")
            );
        ?>
    </div>
    
</div> <!-- end div tab -->

<div class="right">
	<div class="content">
    <?php
        echo CHtml::beginForm(array($controller_id."/save_thietlap", 
			"current_acategory_id" => $current_acategory_id),"post");
		echo "<table cellpadding='3' cellspacing='0 border='0' width='50%'>";
		
			echo "<tr>";
				echo "<td class='label' width='180'>"."Kinh nghiệm - Trãi nghiệm"."</td>";
				echo "<td>";
				$list_cat = array();
				$list_cat[0] = "-- Chuyên mục --";
				$acategories_parent = acategory::model()->findAll(array(
					"condition"=>"parent_id = 0",
					"order"=>"acategory_name ASC"
				));
				if (!is_null($acategories_parent))
				{
					foreach($acategories_parent as $acat)
					{
						$list_cat[$acat["id"]] = $acat["acategory_name"];
					}
				}
				
				echo CHtml::dropDownList("cat_kinhnghiem_id", $form["cat_kinhnghiem_id"], $list_cat);
				echo "</td>";
			echo "</tr>";
			
			
			echo "<tr>";
				echo "<td>"."</td>";
				echo "<td>" .CHtml::submitButton("Save")."</td>";
			echo "</tr>";
				
		echo "</table>";
		echo CHtml::endForm();
	?>
    </div>
</div><!-- end div right -->